import request from '@/utils/request.js'
// http,
// httpRequest,

// 查询所有城市
export function cityAll(data) {
	return request.http.post("/member/index/all", data)
}

// 经纬度解析地址及城市id
export function getCityByLocation(data) {
	return request.http.post("/member/index/getCityByLocation", data)
}

// 微信回调链接
export function wxUrls(data) {
	return request.http.post("/wx/redirect", data)
}
//公众号url签名
export function getSignature(data) {
	return request.http.post("/wx/getInitConfig", data)
}
// 公众号授权登录 
export function wechatLogin(data) {
	return request.http.post("/member/authLogin", data)
}
// 公众号绑定手机号
export function bindPhone(data) {
	return request.http.post("/member/officialAccounts", data)
}
// 公众号验证是否关注
export function wxConcerned(data) {
	return request.http.post("/member/wxConcerned", data)
}
// 验证token
export function isToken(data) {
	return request.http.post("/member/loginVerify", data)
}
// 验证token 未拦截 
export function isTokens(data) {
	return request.httpRequest.post("/member/loginVerify", data)
}
//高德距离测量
export function mapDistance(data) {
	return request.http.post("/gaode/distance", data)
}
// 退出登录
export function outLogins(data) {
	return request.http.post("/member/outLogin", data)
}
// 文件上传
export function uploadFile(data) {
	return request.http.post("/file/upload", data)
}
//七牛云上传
export function getUploadToken(data) {
	return request.http.post("/file/getUploadToken", data)
} 
// key换取线上链接
export function geturl(data) {
	return request.http.post("/file/getUrl", data)
}
// 轮播图
export function bannerList(data) {
	return request.http.post("/member/index/carousel", data)
}
// 字典列表  技师级别"massagistLevel"
export function dictType(data) {
	return request.http.post("/sysDictByType", data)
}

// 项目列表
export function projectList(data) {
	return request.http.post("/member/service/page", data)
}
// 项目详情
export function projectDetails(data) {
	return request.http.post("/member/service/details", data)
}

// 技师列表 筛选
// export function massagistList(data) {
// 	return request.http.post("/member/massagist/page", data)
// }
export function massagistList(data) {
	return request.http.post("/member/massagist/listAll", data)
}
// 订单选择技师列表
export function massagistSelect(data) {
	return request.http.post("/member/order/allowMassagistPage", data)
}
// 技师详情
export function massagistDetails(data) {
	return request.http.post("/member/massagist/details", data)
}
// 技师详情评价列表
export function massagistEvaluatePage(data) {
	return request.http.post("/member/massagist/massagistEvaluatePage", data)
}
// 技师预约时间
export function massagistTime(data) {
	return request.http.post("/member/order/queryMassagistTime", data)
}


// 订单列表
export function orderList(data) {
	return request.http.post("/member/order/page", data)
}
// 下单
export function placeOrder(data) {
	return request.http.post("/order/placeOrder", data)
}
// 修改订单
// export function editOrder(data){ return request.http.post("/order/edit",data) }
// 取消订单
export function escOrder(data) {
	return request.http.post("/member/order/cancel", data)
}
// 加钟
export function extraTime(data) {
	return request.http.post("/member/order/extraTime", data)
}
// 订单详情
export function orderDetails(data) {
	return request.http.post("/member/order/details", data)
}
// 生成订单
export function addOrder(data) {
	return request.http.post("/member/order/addOrder", data)
}
// 立即预约  
export function precontractOrder(data) {
	return request.http.post("/member/order/precontract", data)
}
// 立即预约校验接口
export function enterPrecontract(data) {
	return request.http.post("/member/order/enterPrecontract", data)
}
//订单支付中优惠券
export function orderCoupon(data) {
	return request.http.post("/member/order/ticket/queryMyUsableTicketList", data)
}
//订单支付获取支付参数
export function orderPay(data) {
	return request.http.post("/member/order/pay", data)
}
//加钟  订单支付获取支付参数
export function extOrderPay(data) {
	return request.http.post("/member/order/extPay", data)
}


// 用户信息
export function getUser(data) {
	return request.http.post("/member/my/info", data)
}
// 用户信息修改
export function userEdit(data) {
	return request.http.post("/member/my/edit", data)
}
// 地址列表
export function addressList(data) {
	return request.http.post("/member/my/addresses/page", data)
}
// 设置默认地址
export function addressDefault(data) {
	return request.http.post("/member/my/addresses/editDefault", data)
}
// 新增地址
export function addressAdd(data) {
	return request.http.post("/member/my/addresses/add", data)
}
// 地址修改
export function addressEdit(data) {
	return request.http.post("/member/my/addresses/edit", data)
}
// 地址删除
export function addressDelete(data) {
	return request.http.post("/member/my/addresses/delete", data)
}
// 新增地址发送验证码
export function sendSms4Address(data) {
	return request.http.post("/member/my/sendSms4Address", data)
}
// 优惠券列表
export function couponList(data) {
	return request.http.post("/member/my/ticket/queryMyTicketList", data)
}
// 技师收藏列表
export function collectionList(data) {
	return request.http.post("/member/my/collection/myList", data)
}
//收藏-取消收藏技师
export function collection(data) {
	return request.http.post("/member/massagist/collection", data)
}
//我的spa钱包
export function spaCoupons(data) {
	return request.http.post("/member/my/coupons", data)
}
// 短链解析兑换码
export function getScanCode(data) {
	return request.http.post("/member/my/scanCode", data)
}
// 兑换团购券
export function exchange(data) {
	return request.http.post("/member/my/exchange", data)
}



/**
 * @Description:  获取所有城市、意见反馈投诉建议中使用
 * @author: 赵瑞峰
 * @createTime: 2024-01-16 10:21:35
 */
export function AllCity(data) {
	return request.http.post("/member/index/all", data)
}
/**
  * @Description: 添加我的 - 投诉举报-意见反馈
  * @author: 赵瑞峰
  * @param 
		cityId	城市ID		true	
		type	类型（10 反馈、20投诉举报）		true	
		content	内容		true	
		imgList	相关图		false	
		phone	手机号		true	
		cause	原因		false	
  * @createTime: 2024-01-16 10:01:00
  *
 */
export function addFeedback(data) {
	return request.http.post("/member/my/feedback/addFeedback", data)
}
/**
 * @Description:列表投诉举报
 * @author: 赵瑞峰
 * @createTime: 2024-01-12 15:25:47
 */
export function pageFeedBack(data) {
	return request.http.post("/member/my/feedback/pageFeedBack", data)
}


/**
 * @Description:对技师评价
 * @author: 赵瑞峰
 * @createTime: 2024-01-12 15:57:16
 */
export function massagistEvaluate(data) {
	return request.http.post("/member/order/massagistEvaluate", data)
}